import {
    createApp
} from 'vue'


import App from './App.vue'

import router from './router'
import store from './store'
// element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// element-plus图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//全局引入echarts
import * as echarts from 'echarts'
//moment时间格式组件
import moment from 'moment'


//jquery
import $ from 'jquery'

const app = createApp(App)

//图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

//全局配置moment时间格式组件
app.config.globalProperties.$moment = moment


// 暗黑模式
import 'element-plus/theme-chalk/dark/css-vars.css'
// import './assets/style/dark/css-vars.css'
//阿里巴巴 图标
import './assets/icon/iconfont.js'
// 全局css
import './assets/css/global.css'
//全局引入阿里巴巴图标
import './assets/font/iconfont/iconfont.css'

//VUE3封装axios网络请求
import request from '@/utils/request.js'

//flexible.js rem适配
import './utils/flexible'
import 'element-plus/theme-chalk/display.css'
app.config.globalProperties.$http = request
//全局配置echarts
app.config.globalProperties.$echarts = echarts

app.use(store).use(router).use(ElementPlus).use($).mount('#app')